//package com.wq.httpclientcore.client;
//
//import com.wq.httpclientcore.factory.HttpClientFactory;
//import com.wq.httpclientcore.model.HttpResponseWrapper;
//import com.wq.httpclientcore.model.TestModel;
//import com.wq.httpclientcore.service.TestService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class TestClient {
//
//    @Autowired
//    private HttpClientFactory httpClientFactory;
//
//    public HttpResponseWrapper<TestModel> test() {
//        // 创建代理对象
//        TestService testService = httpClientFactory.createClient(TestService.class);
//
//        // 调用代理方法
//        return testService.getData();
//    }
//}